{extend name="panel/layout" /}
{block name="main"}
<div class="row">
    <div class="col-lg-6">
        <section class="panel">
            <div class="panel-body">
                <a href="#" class="task-thumb">
                    <img src="http://q1.qlogo.cn/g?b=qq&nk={$userInfo.qq}&s=160" alt="" width="90">
                </a>
                <div class="task-thumb-details">
                    <h1><a href="#">{$userInfo.user}</a></h1>
                    <p>[UID:{$userInfo.uid}]</p>
                </div>
            </div>
            <form method="post">
                <table class="table table-hover personal-task">
                    <tbody>
                    <tr>
                        <td>
                            <i class=" fa fa-rmb"></i>
                        </td>
                        <td>余额</td>
                        <td>{$userInfo.rmb}元</td>
                    </tr>
                    <tr>
                        <td>
                            <i class="fa fa-soccer-ball-o"></i>
                        </td>
                        <td>金币</td>
                        <td>{$userInfo.point}个</td>
                    </tr>
                    <tr>
                        <td>
                            <i class="fa fa-map-pin"></i>
                        </td>
                        <td>配额</td>
                        <td>{$userInfo.peie}个</td>
                    </tr>
                    <tr>
                        <td>
                            <i class=" fa fa-qq"></i>
                        </td>
                        <td>绑定QQ</td>
                        <td><input type="number" class="form-control" name="qq" value="{$userInfo.qq}" placeholder="输入绑定QQ"
                                   style="text-align: right"></td>
                    </tr>
                    {if condition="$userInfo.power eq 9"}
                    <tr>
                        <td>
                            <i class=" fa fa-cc-paypal"></i>
                        </td>
                        <td>提现支付宝账号</td>
                        <td><input type="text" name="pay_account" class="form-control" value="{$userInfo.pay_account}"
                                   style="text-align: right"/>
                            <pre>如果填错将无法结算到账！</pre>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <i class=" fa fa-dot-circle-o"></i>
                        </td>
                        <td>提现支付宝姓名</td>
                        <td><input type="text" name="pay_name" class="form-control" value="{$userInfo.pay_name}"
                                   style="text-align: right"></td>
                    </tr>
                    {/if}
                    <tr>
                        <td>
                            <i class="fa fa-sun-o"></i>
                        </td>
                        <td>修改密码</td>
                        <td><input type="text" name="pwd" class="form-control" placeholder="不修改则留空"
                                   style="text-align: right"></td>
                    </tr>
                    </tbody>
                </table>
                <div class="list-group-item list-group-item-success text-right"><button type="submit" class="btn btn-primary">保存修改</button></div>
            </form>
        </section>
    </div>
</div>
{/block}
